package com.yanqu.road.entity.beautyescort.rank;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Objects;

@FieldTypeAnnotation(tableName = "t_u_escort_week_user_value")
public class EscortWeekUserValue extends DataObject {
    @FieldTypeAnnotation(desc = "玩家id", update = true)
    private long userId;
    @FieldTypeAnnotation(desc = "周id", update = true, select = true)
    private int weekId;
    @FieldTypeAnnotation(desc = "是否已领奖")
    private boolean getReward;
    @FieldTypeAnnotation(desc = "领奖时间")
    private long getRewardTime;
    @FieldTypeAnnotation(desc = "值")
    private long value;
    @FieldTypeAnnotation(desc = "商会uid")
    private String unionUid = "";
    @FieldTypeAnnotation(desc = "奖励")
    private String reward = "";
    @FieldTypeAnnotation(desc = "商会职位")
    private int position;
    @FieldTypeAnnotation(desc = "修改时间")
    private long modifyTime;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public int getWeekId() {
        return weekId;
    }

    public void setWeekId(int weekId) {
        if(this.weekId != weekId) {
            this.weekId = weekId;
            setUpdateOption();
        }
    }

    public boolean isGetReward() {
        return getReward;
    }

    public void setGetReward(boolean getReward) {
        if (this.getReward != getReward) {
            this.getReward = getReward;
            setUpdateOption();
        }
    }

    public long getGetRewardTime() {
        return getRewardTime;
    }

    public void setGetRewardTime(long getRewardTime) {
        if (this.getRewardTime != getRewardTime) {
            this.getRewardTime = getRewardTime;
            setUpdateOption();
        }
    }

    public long getValue() {
        return value;
    }

    public void setValue(long value) {
        if (this.value != value) {
            this.value = value;
            setUpdateOption();
        }
    }

    public String getUnionUid() {
        return unionUid;
    }

    public void setUnionUid(String unionUid) {
        if(!Objects.equals(this.unionUid, unionUid)) {
            this.unionUid = unionUid;
            setUpdateOption();
        }
    }

    public String getReward() {
        return reward;
    }

    public void setReward(String reward) {
        if(!Objects.equals(this.reward, reward)) {
            this.reward = reward;
            setUpdateOption();
        }
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        if(this.position != position) {
            this.position = position;
            setUpdateOption();
        }
    }

    public long getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(long modifyTime) {
        if(this.modifyTime != modifyTime) {
            this.modifyTime = modifyTime;
            setUpdateOption();
        }
    }
}
